package com.geen.tuoke.bean

import com.blankj.utilcode.util.TimeUtils
import java.io.Serializable

/**
 * @author 文庆

 * @date 2022/1/4.
 * @description  客户信息
 */
data class CustomerInfo(
    var id: Int = 0,  //在拨号界面添加客户时传递用户ID，客户更新时传递客户ID
    var name: String = "",
    var mobile: String = "", //电话号码
    var gender: Int = 1,  //0 女 1男 其他未知

    var company: String = "",  //公司名
    var email: String = "",  // 客户email
    var labels: List<Label> = emptyList(),
    var officeAddress: String = "", //客户地址
    var qq: String = "", //
    var wechat: String = "", //
    var remark: String = "", //备注

    var followProgress: Int = 0, //备注
    var callTime: Long = 0, //时间
    var duration: Int = 0, //时长
    var callTimes: Int = 0, //拨号次数


) : Serializable {
    fun getRemarkText(): String {
        return "备注：$remark"
    }

    fun getDurationText(): String {
        return "${duration}s"
    }

    fun getCallTimesText(): String {
        return "${callTimes}次"
    }

    fun getCallInfo(): String {
        return "任务：${TimeUtils.millis2String(callTime)}  ${
            TimeUtils.millis2String(
                callTime,
                "EEEE"
            )
        }"
    }
}


data class QueryCustomerModel(
    var type: Int,//查找分类：0 电话 1联系人 2 公司 3 备注
    var query: String,//查询关键字

) : Serializable







